# Makefile for Linux, IRIX and possibly Mac OS X (10.2.x)

all: cubes grid quark stars

cubes: main.c cubes.c
	cc -O2 -I/usr/X11R6/include -L/usr/X11R6/lib \
	   -o cubes main.c cubes.c -lGLU -lGL -lX11 -lm

grid: main.c grid.c
	cc -O2 -I/usr/X11R6/include -L/usr/X11R6/lib \
	   -o grid main.c grid.c -lGLU -lGL -lX11 -lm

quark: main.c quark.c
	cc -O2 -I/usr/X11R6/include -L/usr/X11R6/lib \
	   -o quark main.c quark.c -lGLU -lGL -lX11 -lm

stars: main.c stars.c
	cc -O2 -I/usr/X11R6/include -L/usr/X11R6/lib \
	   -o stars main.c stars.c -lGLU -lGL -lX11 -lm

clean:
	rm -f *.o cubes grid quark stars

